package com.itcast.cn.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * <p>Servlet学习</p>
 *
 * @author hyatt 2022/1/13 17:18
 * @version 1.0
 */
@WebServlet("/test1")
public class ServletTest implements Servlet {

    /**
     * 默认调用
     * @param servletRequest 请求数据
     * @param servletResponse 响应数据
     * @throws ServletException 异常
     * @throws IOException 异常
     */
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("Servlet start......");
    }

    public void init(ServletConfig servletConfig) throws ServletException {

    }

    public ServletConfig getServletConfig() {
        return null;
    }

    public String getServletInfo() {
        return null;
    }

    public void destroy() {

    }
}
